﻿@model SimpleTaskManager.Domain.Entities.User_Skill

@{
    ViewBag.Title = "Rate Skill";
}

<h2>RateSkill</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Rate @Model.User.FirstName @Model.User.LastName's @Model.Skill.Name skill</legend>

        @Html.HiddenFor(model => model.User_SkillID)

        @Html.HiddenFor(model => model.UserId)

        @Html.HiddenFor(model => model.SkillId)

        <div class="editor-label">
            @Html.LabelFor(model => model.Rating)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Rating)
            @Html.ValidationMessageFor(model => model.Rating)
        </div>

        <div style="clear: left;" />

        <p>
            <input type="submit" value="Rate" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Skills", new { id = Model.UserId })
</div>
